package cn.xysfxy.fss.util;

import com.baidu.aip.face.AipFace;

public class BaiduFaceAPIBase {
	// 设置APPID/AK/SK
	public static final String APP_ID = "10543480";
	public static final String API_KEY = "pHtiTRHkinyykymwiu92YgEG";
	public static final String SECRET_KEY = "KZX0MEqO4yieGbP7TGr3owtZUHR5VO7s";

	public static AipFace getClient() {
		// 初始化一个AipFace
		AipFace client = new AipFace(APP_ID, API_KEY, SECRET_KEY);

		// 可选：设置网络连接参数
		client.setConnectionTimeoutInMillis(2000);
		client.setSocketTimeoutInMillis(60000);

		return client;
	}
}
